CentOS 6
Sponsored Link

Display HDD Info
2013/04/08
 
Display HDD Infomation like follows.
[1] Install hdparm
[root@dlp ~]#
yum -y install hdparm
[2] Display HDD Info
[root@dlp ~]#
hdparm -i /dev/sda


/dev/sda:

 Model=C300-CTFDDAC064MAG, FwRev=0002, SerialNo=00000000103402FCA9C2
 Config={ Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=unknown, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=125045424
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
 AdvancedPM=yes: unknown setting WriteCache=enabled
 Drive conforms to: unknown:  ATA/ATAPI-3,4,5,6,7

 * signifies the current active mode

# display details

[root@dlp ~]#
hdparm -I /dev/sda


/dev/sda:

ATA device, with non-removable media
        Model Number:       C300-CTFDDAC064MAG
        Serial Number:      00000000103402FCA9C2
        Firmware Revision:  0002
        Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
        Used: unknown (minor revision code 0x0028)
        Supported: 9 8 7 6 5
        Likely used: 9
.....
.....
.....
[3] Display the configuration of a HDD
[root@dlp ~]#
hdparm /dev/sda


/dev/sda:
 multcount     = 16 (on)
 IO_support    =  1 (32-bit)
 readonly      =  0 (off)
 readahead     = 256 (on)
 geometry      = 7783/255/63, sectors = 125045424, start = 0
[4] Test the readable speed of a HDD
[root@dlp ~]#
hdparm -Tt /dev/sda


/dev/sda:
 Timing cached reads:   26742 MB in  2.00 seconds = 13393.40 MB/sec
 Timing buffered disk reads:  810 MB in  3.00 seconds = 269.89 MB/sec
 
Tweet